package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by zisheng on 2017/8/16.
 */

public class PointsDetailBean {


    /**
     * code : 2000
     * data : {"isRecommend":true,"isBanner":true,"bankCard":0,"sortNumber":67,"couponSid":"couponser1488193799217FV5M","payWay":"wallet","inventory":4444,"isNeedAddress":true,"type":"0","productName":"fs","sid":"2a438c71c4c44d43a7f05862aa5f09b2","referencePrice":67,"price":33,"pictureList":[{"sid":"1269d85eca7a4b35bb725ab50a243710","id":"1269d85eca7a4b35bb725ab50a243710","pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/1269d85eca7a4b35bb725ab50a243710","sortNumber":1,"createdDatetime":1503288661000,"productId":"92c3ea29d3e04ef1bda7ff95ade79627","hospitalSid":null,"hotelSid":null,"pictureUrl":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/1269d85eca7a4b35bb725ab50a243710"},{"sid":"988e9869a84140129740bf406defc046","id":"988e9869a84140129740bf406defc046","pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/988e9869a84140129740bf406defc046","sortNumber":1,"createdDatetime":1503292461000,"productId":"92c3ea29d3e04ef1bda7ff95ade79627","hospitalSid":null,"hotelSid":null,"pictureUrl":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/988e9869a84140129740bf406defc046"},{"sid":"df6228f2ae074644960fd136556d39e0","id":"df6228f2ae074644960fd136556d39e0","pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/df6228f2ae074644960fd136556d39e0","sortNumber":1,"createdDatetime":1503288024000,"productId":"92c3ea29d3e04ef1bda7ff95ade79627","hospitalSid":null,"hotelSid":null,"pictureUrl":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/df6228f2ae074644960fd136556d39e0"},{"sid":"f8b690bc91ac45b991736bc0b98e3de0","id":"f8b690bc91ac45b991736bc0b98e3de0","pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/f8b690bc91ac45b991736bc0b98e3de0","sortNumber":1,"createdDatetime":1503288036000,"productId":"92c3ea29d3e04ef1bda7ff95ade79627","hospitalSid":null,"hotelSid":null,"pictureUrl":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/f8b690bc91ac45b991736bc0b98e3de0"}],"introduction":"4545","wx":0,"productSid":"92c3ea29d3e04ef1bda7ff95ade79627","wallet":33,"accountAddressSid":"56d1b18262b54024bbbac07f4a2a4d7d","accountAddress":"HAHAHLKS-90","exchangeNo":"082113441495","picture":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/cover?1503292464000","money":33,"pictureKey":"integration/product/92c3ea29d3e04ef1bda7ff95ade79627/cover","zfb":0,"integration":23,"attention":"sdfs","createdDatetime":1503294254000,"accountSid":"acc1457958707029KhCW","isHot":true,"updatedDatetime":1503294257000,"status":"1"}
     * message : 查询成功
     */

    private String code;
    private DataBean data;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean implements Parcelable {
        /**
         * isRecommend : true
         * isBanner : true
         * bankCard : 0
         * sortNumber : 67
         * couponSid : couponser1488193799217FV5M
         * payWay : wallet
         * inventory : 4444
         * isNeedAddress : true
         * type : 0
         * productName : fs
         * sid : 2a438c71c4c44d43a7f05862aa5f09b2
         * referencePrice : 67
         * price : 33
         * pictureList : [{"sid":"1269d85eca7a4b35bb725ab50a243710","id":"1269d85eca7a4b35bb725ab50a243710","pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/1269d85eca7a4b35bb725ab50a243710","sortNumber":1,"createdDatetime":1503288661000,"productId":"92c3ea29d3e04ef1bda7ff95ade79627","hospitalSid":null,"hotelSid":null,"pictureUrl":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/1269d85eca7a4b35bb725ab50a243710"},{"sid":"988e9869a84140129740bf406defc046","id":"988e9869a84140129740bf406defc046","pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/988e9869a84140129740bf406defc046","sortNumber":1,"createdDatetime":1503292461000,"productId":"92c3ea29d3e04ef1bda7ff95ade79627","hospitalSid":null,"hotelSid":null,"pictureUrl":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/988e9869a84140129740bf406defc046"},{"sid":"df6228f2ae074644960fd136556d39e0","id":"df6228f2ae074644960fd136556d39e0","pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/df6228f2ae074644960fd136556d39e0","sortNumber":1,"createdDatetime":1503288024000,"productId":"92c3ea29d3e04ef1bda7ff95ade79627","hospitalSid":null,"hotelSid":null,"pictureUrl":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/df6228f2ae074644960fd136556d39e0"},{"sid":"f8b690bc91ac45b991736bc0b98e3de0","id":"f8b690bc91ac45b991736bc0b98e3de0","pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/f8b690bc91ac45b991736bc0b98e3de0","sortNumber":1,"createdDatetime":1503288036000,"productId":"92c3ea29d3e04ef1bda7ff95ade79627","hospitalSid":null,"hotelSid":null,"pictureUrl":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/f8b690bc91ac45b991736bc0b98e3de0"}]
         * introduction : 4545
         * wx : 0
         * productSid : 92c3ea29d3e04ef1bda7ff95ade79627
         * wallet : 33
         * accountAddressSid : 56d1b18262b54024bbbac07f4a2a4d7d
         * accountAddress : HAHAHLKS-90
         * exchangeNo : 082113441495
         * picture : http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/cover?1503292464000
         * money : 33
         * pictureKey : integration/product/92c3ea29d3e04ef1bda7ff95ade79627/cover
         * zfb : 0
         * integration : 23
         * attention : sdfs
         * createdDatetime : 1503294254000
         * accountSid : acc1457958707029KhCW
         * isHot : true
         * updatedDatetime : 1503294257000
         * status : 1
         */

        private boolean isRecommend;
        private boolean isBanner;
        private String bankCard;
        private String sortNumber;
        private String couponSid;
        private String payWay;
        private String inventory;
        private boolean isNeedAddress;
        private String type;
        private String productName;
        private String sid;
        private String referencePrice;
        private String price;
        private String introduction;
        private String wx;
        private String productSid;
        private String wallet;
        private String accountAddressSid;
        private String accountAddress;
        private String exchangeNo;
        private String picture;
        private String money;
        private String pictureKey;
        private String zfb;
        private String integration;
        private String attention;
        private long createdDatetime;
        private String accountSid;
        private boolean isHot;
        private long updatedDatetime;
        private String status;
        private String cellphone;
        private String accountName;
        private String expirDate;

        public String getExpirDate() {
            return expirDate;
        }

        public void setExpirDate(String expirDate) {
            this.expirDate = expirDate;
        }

        public String getCellphone() {
            return cellphone;
        }

        public void setCellphone(String cellphone) {
            this.cellphone = cellphone;
        }

        public String getAccountName() {
            return accountName;
        }

        public void setAccountName(String accountName) {
            this.accountName = accountName;
        }

        private List<PictureListBean> pictureList;

        public boolean isIsRecommend() {
            return isRecommend;
        }

        public void setIsRecommend(boolean isRecommend) {
            this.isRecommend = isRecommend;
        }

        public boolean isIsBanner() {
            return isBanner;
        }

        public void setIsBanner(boolean isBanner) {
            this.isBanner = isBanner;
        }

        public String getBankCard() {
            return bankCard;
        }

        public void setBankCard(String bankCard) {
            this.bankCard = bankCard;
        }

        public String getSortNumber() {
            return sortNumber;
        }

        public void setSortNumber(String sortNumber) {
            this.sortNumber = sortNumber;
        }

        public String getCouponSid() {
            return couponSid;
        }

        public void setCouponSid(String couponSid) {
            this.couponSid = couponSid;
        }

        public String getPayWay() {
            return payWay;
        }

        public void setPayWay(String payWay) {
            this.payWay = payWay;
        }

        public String getInventory() {
            return inventory;
        }

        public void setInventory(String inventory) {
            this.inventory = inventory;
        }

        public boolean isIsNeedAddress() {
            return isNeedAddress;
        }

        public void setIsNeedAddress(boolean isNeedAddress) {
            this.isNeedAddress = isNeedAddress;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }

        public String getReferencePrice() {
            return referencePrice;
        }

        public void setReferencePrice(String referencePrice) {
            this.referencePrice = referencePrice;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getIntroduction() {
            return introduction;
        }

        public void setIntroduction(String introduction) {
            this.introduction = introduction;
        }

        public String getWx() {
            return wx;
        }

        public void setWx(String wx) {
            this.wx = wx;
        }

        public String getProductSid() {
            return productSid;
        }

        public void setProductSid(String productSid) {
            this.productSid = productSid;
        }

        public String getWallet() {
            return wallet;
        }

        public void setWallet(String wallet) {
            this.wallet = wallet;
        }

        public String getAccountAddressSid() {
            return accountAddressSid;
        }

        public void setAccountAddressSid(String accountAddressSid) {
            this.accountAddressSid = accountAddressSid;
        }

        public String getAccountAddress() {
            return accountAddress;
        }

        public void setAccountAddress(String accountAddress) {
            this.accountAddress = accountAddress;
        }

        public String getExchangeNo() {
            return exchangeNo;
        }

        public void setExchangeNo(String exchangeNo) {
            this.exchangeNo = exchangeNo;
        }

        public String getPicture() {
            return picture;
        }

        public void setPicture(String picture) {
            this.picture = picture;
        }

        public String getMoney() {
            return money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getPictureKey() {
            return pictureKey;
        }

        public void setPictureKey(String pictureKey) {
            this.pictureKey = pictureKey;
        }

        public String getZfb() {
            return zfb;
        }

        public void setZfb(String zfb) {
            this.zfb = zfb;
        }

        public String getIntegration() {
            return integration;
        }

        public void setIntegration(String integration) {
            this.integration = integration;
        }

        public String getAttention() {
            return attention;
        }

        public void setAttention(String attention) {
            this.attention = attention;
        }

        public long getCreatedDatetime() {
            return createdDatetime;
        }

        public void setCreatedDatetime(long createdDatetime) {
            this.createdDatetime = createdDatetime;
        }

        public String getAccountSid() {
            return accountSid;
        }

        public void setAccountSid(String accountSid) {
            this.accountSid = accountSid;
        }

        public boolean isIsHot() {
            return isHot;
        }

        public void setIsHot(boolean isHot) {
            this.isHot = isHot;
        }

        public long getUpdatedDatetime() {
            return updatedDatetime;
        }

        public void setUpdatedDatetime(long updatedDatetime) {
            this.updatedDatetime = updatedDatetime;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public List<PictureListBean> getPictureList() {
            return pictureList;
        }

        public void setPictureList(List<PictureListBean> pictureList) {
            this.pictureList = pictureList;
        }

        public static class PictureListBean implements Parcelable {
            /**
             * sid : 1269d85eca7a4b35bb725ab50a243710
             * id : 1269d85eca7a4b35bb725ab50a243710
             * pictureKey : http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/1269d85eca7a4b35bb725ab50a243710
             * sortNumber : 1
             * createdDatetime : 1503288661000
             * productId : 92c3ea29d3e04ef1bda7ff95ade79627
             * hospitalSid : null
             * hotelSid : null
             * pictureUrl : http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/integration/product/92c3ea29d3e04ef1bda7ff95ade79627/picture/1269d85eca7a4b35bb725ab50a243710
             */

            private String sid;
            private String id;
            private String pictureKey;
            private int sortNumber;
            private long createdDatetime;
            private String productId;
            private String hospitalSid;
            private String hotelSid;
            private String pictureUrl;

            public String getSid() {
                return sid;
            }

            public void setSid(String sid) {
                this.sid = sid;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getPictureKey() {
                return pictureKey;
            }

            public void setPictureKey(String pictureKey) {
                this.pictureKey = pictureKey;
            }

            public int getSortNumber() {
                return sortNumber;
            }

            public void setSortNumber(int sortNumber) {
                this.sortNumber = sortNumber;
            }

            public long getCreatedDatetime() {
                return createdDatetime;
            }

            public void setCreatedDatetime(long createdDatetime) {
                this.createdDatetime = createdDatetime;
            }

            public String getProductId() {
                return productId;
            }

            public void setProductId(String productId) {
                this.productId = productId;
            }

            public String getHospitalSid() {
                return hospitalSid;
            }

            public void setHospitalSid(String hospitalSid) {
                this.hospitalSid = hospitalSid;
            }

            public String getHotelSid() {
                return hotelSid;
            }

            public void setHotelSid(String hotelSid) {
                this.hotelSid = hotelSid;
            }

            public String getPictureUrl() {
                return pictureUrl;
            }

            public void setPictureUrl(String pictureUrl) {
                this.pictureUrl = pictureUrl;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.sid);
                dest.writeString(this.id);
                dest.writeString(this.pictureKey);
                dest.writeInt(this.sortNumber);
                dest.writeLong(this.createdDatetime);
                dest.writeString(this.productId);
                dest.writeString(this.hospitalSid);
                dest.writeString(this.hotelSid);
                dest.writeString(this.pictureUrl);
            }

            public PictureListBean() {
            }

            protected PictureListBean(Parcel in) {
                this.sid = in.readString();
                this.id = in.readString();
                this.pictureKey = in.readString();
                this.sortNumber = in.readInt();
                this.createdDatetime = in.readLong();
                this.productId = in.readString();
                this.hospitalSid = in.readString();
                this.hotelSid = in.readString();
                this.pictureUrl = in.readString();
            }

            public static final Parcelable.Creator<PictureListBean> CREATOR = new Parcelable.Creator<PictureListBean>() {
                @Override
                public PictureListBean createFromParcel(Parcel source) {
                    return new PictureListBean(source);
                }

                @Override
                public PictureListBean[] newArray(int size) {
                    return new PictureListBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeByte(this.isRecommend ? (byte) 1 : (byte) 0);
            dest.writeByte(this.isBanner ? (byte) 1 : (byte) 0);
            dest.writeString(this.bankCard);
            dest.writeString(this.sortNumber);
            dest.writeString(this.couponSid);
            dest.writeString(this.payWay);
            dest.writeString(this.inventory);
            dest.writeByte(this.isNeedAddress ? (byte) 1 : (byte) 0);
            dest.writeString(this.type);
            dest.writeString(this.productName);
            dest.writeString(this.sid);
            dest.writeString(this.referencePrice);
            dest.writeString(this.price);
            dest.writeString(this.introduction);
            dest.writeString(this.wx);
            dest.writeString(this.productSid);
            dest.writeString(this.wallet);
            dest.writeString(this.accountAddressSid);
            dest.writeString(this.accountAddress);
            dest.writeString(this.exchangeNo);
            dest.writeString(this.picture);
            dest.writeString(this.money);
            dest.writeString(this.pictureKey);
            dest.writeString(this.zfb);
            dest.writeString(this.integration);
            dest.writeString(this.attention);
            dest.writeLong(this.createdDatetime);
            dest.writeString(this.accountSid);
            dest.writeByte(this.isHot ? (byte) 1 : (byte) 0);
            dest.writeLong(this.updatedDatetime);
            dest.writeString(this.status);
            dest.writeString(this.cellphone);
            dest.writeString(this.accountName);
            dest.writeString(this.expirDate);
            dest.writeTypedList(this.pictureList);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.isRecommend = in.readByte() != 0;
            this.isBanner = in.readByte() != 0;
            this.bankCard = in.readString();
            this.sortNumber = in.readString();
            this.couponSid = in.readString();
            this.payWay = in.readString();
            this.inventory = in.readString();
            this.isNeedAddress = in.readByte() != 0;
            this.type = in.readString();
            this.productName = in.readString();
            this.sid = in.readString();
            this.referencePrice = in.readString();
            this.price = in.readString();
            this.introduction = in.readString();
            this.wx = in.readString();
            this.productSid = in.readString();
            this.wallet = in.readString();
            this.accountAddressSid = in.readString();
            this.accountAddress = in.readString();
            this.exchangeNo = in.readString();
            this.picture = in.readString();
            this.money = in.readString();
            this.pictureKey = in.readString();
            this.zfb = in.readString();
            this.integration = in.readString();
            this.attention = in.readString();
            this.createdDatetime = in.readLong();
            this.accountSid = in.readString();
            this.isHot = in.readByte() != 0;
            this.updatedDatetime = in.readLong();
            this.status = in.readString();
            this.cellphone = in.readString();
            this.accountName = in.readString();
            this.expirDate = in.readString();
            this.pictureList = in.createTypedArrayList(PictureListBean.CREATOR);
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
